/**
 * pharma-model - 9 janv. 2011 guillaume
 */
package org.bspv.pharma.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author guillaume
 */
@Entity
@Table(name = "CONSUMABLE")
public class Consumable extends Supply {

    /**
     * serialVersionUID.
     */
    private static final long serialVersionUID = -1492897103710179339L;

    /**
     * Consommation.
     */
    @ManyToOne(cascade = { CascadeType.ALL })
    private Consumption consumption;

    /**
     * @return the consumption
     */
    public final Consumption getConsumption() {
        return consumption;
    }

    /**
     * @param consumption
     *            the consumption to set
     */
    public final void setConsumption(final Consumption consumption) {
        this.consumption = consumption;
    }

}
